package com.doordu.soa.service.data.service.impl;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.stereotype.Component;

import com.doordu.soa.service.data.service.thread.ImageSyncThread;

/**
 * 图片同步启动服务
 * 
 * @ClassName: ServiceThreadStart
 * @Description:
 * @author xiaoqun.yi yixq@doordu.com
 * @date 2017年9月26日 上午11:38:23
 * @version V1.0
 */
@Component
public class ServiceThreadStart implements InitializingBean {

	private final Logger logger = LoggerFactory.getLogger(ServiceThreadStart.class);

	@Override
	public void afterPropertiesSet() throws Exception {
		logger.error("*******ServiceThreadStart*******");
		ImageSyncThread imageSyncThread = new ImageSyncThread();
		Thread thread = new Thread(imageSyncThread);
		thread.start();
	}

}
